Skip to content

fix: don't throw when there are no commands - #532

Merged
gustavohenke merged 1 commit into
mainfrom
no-commands
Feb 22, 2025
Merged

fix: don't throw when there are no commands#532
gustavohenke merged 1 commit into
mainfrom
no-commands

Conversation

@gustavohenke

Copy link
Copy Markdown
Member

There's a guard against no inputs in

assert.notStrictEqual(baseCommands.length, 0, '[concurrently] no commands provided');

However, there can still a situation where are no commands to run if one of the inputs is a wildcard that doesn't expand to anything.
This has been detected as the cause of #527, though it's not a fix for it. CompletionListener should simply assume that no commands = success.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 98.186% (+0.006%) from 98.18%
when pulling d599be5 on no-commands
into 4ffe63b on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants